package ch.unisi.inf.pfii.teamred.pacman.model;

/**
 * @author luca.vignola@lu.unisi.ch
 * 
 */
public final class Cherry extends Bonus {

	private static final int POINTS = 100;

	public Cherry() {
		super(POINTS);
		setName("cherry");
	}

	public final int doAction(final Creature creature) {
		return getPoints();
	}

	public final boolean equals(final Object object) {
		return object instanceof Cherry;
	}

	public final int hashCode() {
		int hash = 7;
		hash = 31 * hash + getPoints();
		hash = 31 * hash + (null == getName() ? 0 : getName().hashCode());
		
		return hash;
	}

	public final String toString() {
		return "^";
	}

}
